Skip to main content

Snooze Transaction

AutomatR.OrchestratorActivities.SnoozeTransaction

The "Snooze Transaction" activity in AutomatR OrchestratorActivities temporarily suspends a transaction in Orchestrator, delaying its processing until a specified date. This activity is useful for managing the timing of transaction execution and is particularly valuable for scenarios where a transaction needs to be postponed until a later time.

Properties

NameDescription
Input
Transaction IDSpecifies the ID of the transaction to be snoozed. String variables containing the transaction ID.
Postpone UntilSpecifies the date after which the queue item may be processed. DateTime variables containing the postponed date and time.
High PriorityWhen selected, sets the queue item in high priority.
Custom DataEnter custom data in dictionary format to associate additional information with the transaction.
Replace Custom DataSelect True or False to indicate whether to replace existing custom data with the provided data. If True, existing custom data is replaced; if False, new data is appended.
Custom Status KeySpecifies a custom status key to be set for the transaction.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Snooze Transaction" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the time is 1000 milliseconds or 1 sec, i.e., 1.
Output
StatusOutputs the result of the "Snooze Transaction" operation, indicating whether the transaction was snoozed successfully or encountered errors. Boolean variables to store the operation result.

How to use:

  1. Drag and drop the "Snooze Transaction" activity onto the workflow.
  2. Configure the properties by specifying the transaction ID and the date after which the transaction should be processed.
  3. Optionally, configure additional parameters such as custom data, custom status key, and high priority.
  4. Execute the workflow to temporarily suspend the specified transaction in Orchestrator.

Example: Consider an example where the "Snooze Transaction" activity is used to postpone the processing of a transaction:

Snooze Transaction:
Transaction ID: "123456"
Postpone Until: "2023-01-01T12:00:00"
Custom Data: { "Key1": "Value1", "Key2": "Value2" }
Replace Custom Data: True
Custom Status Key: "CustomKey"
High Priority: True
Status: isTransactionSnoozedSuccessfully

In this example, the activity postpones the processing of the transaction with ID "123456" until January 1, 2023, and associates custom data, a custom status key, and sets high priority. The result of the operation (success or failure) is stored in the Boolean variable "isTransactionSnoozedSuccessfully" for further handling in the workflow.